$OpenBSD: patch-src_Scanner_cpp,v 1.1 2011/06/24 08:42:31 dcoppa Exp $
--- src/Scanner.cpp.orig	Thu Nov  4 17:41:09 2010
+++ src/Scanner.cpp	Thu Nov  4 17:44:33 2010
@@ -31,7 +31,7 @@
 
 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
 
-#if __STDC_VERSION__ >= 199901L
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 
 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  * if you want the limit (max/min) macros for int types. 
